package com.qijian.tool.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qijian.tool.domain.vo.*;
import com.qijian.tool.mapper.ReportMapper;
import com.qijian.tool.service.IReportService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 本地存储Service业务层处理
 *
 * @author qijian
 * @date 2021-09-06
 */
@Service
@RequiredArgsConstructor
public class ReportServiceImpl implements IReportService {

    private final ReportMapper reportMapper;

    @Override
    public ProjectReportVo projectCount() {
        return reportMapper.projectCount();
    }

    @Override
    public SalesReportVo salesSum() {
        return reportMapper.salesSum();
    }

    @Override
    public List<EvalReportVo> evalAvg(String beginTime, String endTime) {
        return reportMapper.evalAvg(beginTime, endTime);
    }

    @Override
    public List<QualityReportVo> qualitySum() {
        return reportMapper.qualitySum();
    }

    @Override
    public List<BenefitReportVo> benefitSum() {
        return reportMapper.benefitSum();
    }

    @Override
    public List<BenefitReportVo> benefitSumDetail() {
        return reportMapper.benefitSumDetail();
    }

    @Override
    public List<ConsumptionReportVo> consumptionSum() {
        return reportMapper.consumptionSum();
    }

    @Override
    public List<ConsumptionReportVo> consumptionSumDetail() {
        return reportMapper.consumptionSumDetail();
    }

    @Override
    public List<SalesItemReportVo> salesItemSumDetail() {
        return reportMapper.salesItemSumDetail();
    }
}
